package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import module.app.AppConfigure;
	
	import robotlegs.bender.bundles.mvcs.MVCSBundle;
	import robotlegs.bender.extensions.contextView.ContextView;
	import robotlegs.bender.framework.api.IContext;
	import robotlegs.bender.framework.api.LogLevel;
	import robotlegs.bender.framework.impl.Context;
	
	public class DrongoEditor extends Sprite
	{
		public function DrongoEditor()
		{
			stage.align=StageAlign.TOP_LEFT;
			stage.scaleMode=StageScaleMode.NO_SCALE;
			stage.nativeWindow.close();
			this.initRobotlegs();
		}
		private var _context:IContext;
		/**
		 * 初始化MVC框架 
		 */
		private function initRobotlegs():void{
			_context = new Context();
			//设置LOG级别
			_context.logLevel=LogLevel.ERROR;
			_context.install(MVCSBundle);
			_context.configure(AppConfigure);
			_context.configure(new ContextView(this.stage));
		}
	}
}